import {SET_VISIBILITY_FILTER, VisibilityFilters} from '../action-types'

const {SHOW_ALL} = VisibilityFilters;
export const visibilityFilter = (state = SHOW_ALL, action) => {
    console.log(action);
    switch (action.type) {
        case SET_VISIBILITY_FILTER:
            return action.filter;
        default:
            return state;
    }
};